<template>
  <div class="regis">
    <div class="regis-head">
      <van-nav-bar placeholder fixed left-arrow @click-left="back" />
      <img class="infoImg" src="@img/banner.png" alt="" />
    </div>
    <div class="cont-item">
      <div class="item-title">如何做好企业资金流管理</div>
      <van-row>
        <van-col :span="12">
          <div class="item-l">
            <span class="item-title">已参与</span>
            <span class="item-pic">12人</span>
          </div>
        </van-col>
        <van-col :span="12">
          <div class="item-r">限制100人</div>
        </van-col>
      </van-row>
      <div class="djsUpad">报名已结束</div>
      <div class="djsUpad bmjs">
        <van-row>
          <van-col :span="6">距离报名结束</van-col>
          <van-col :span="18" style="text-align: right">
            <van-count-down :time="time">
              <template #default="timeData">
                仅剩
                <span class="block">0</span>天
                <span class="block">{{ timeData.hours }}</span>
                <span class="colon">:</span>
                <span class="block">{{ timeData.minutes }}</span>
                <span class="colon">:</span>
                <span class="block">{{ timeData.seconds }}</span>
              </template>
            </van-count-down>
          </van-col>
        </van-row>
      </div>
    </div>
    <div class="line"></div>
    <div class="acont">
      <div class="acont-title">活动时间：<span>2023年03月12日 10:30</span></div>
      <div class="acont-title">活动地点：<span>1101会议室</span></div>
    </div>
    <div class="line"></div>
    <div class="cont-item">
      <div class="item-title">活动参与者</div>
      <van-row>
        <van-col :span="12">
          <div class="item-l item-cyrs">
            <span class="item-title cyrs">人数</span>
          </div>
        </van-col>
        <van-col :span="12">
          <div class="item-r item-r-cyrs">
            <span class="y-pic">12</span>
            <span>/100人参与</span>
          </div>
        </van-col>
      </van-row>
      <div class="prs">
        <div class="prs-line" :style="{ width: prswidth + 'px' }"></div>
      </div>
      <van-row>
        <van-col :span="12">
          <div class="item-l item-cyrs">
            <span class="item-title cyrs"
              >已审核11人 <span class="isRead">(您已审核通过)</span></span
            >
          </div>
        </van-col>
        <van-col :span="12">
          <div class="item-r item-r-cyrs">
            <span class="iscy">参与12人</span>
          </div>
        </van-col>
      </van-row>
    </div>
    <div class="line"></div>
    <div class="cont-item">
      <div class="item-title">报名要求</div>
      <div class="desc">
        报名要求报名要求报名要求报名要求报名要求报名要求
        报名要求报名要求报名要求
      </div>
    </div>
    <div class="foter-btn">活动已结束</div>
    <div class="foter-btn rd">报名活动</div>
    <div class="foter-btn qx">取消报名</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      prswidth: 132,
      time: 30 * 60 * 60 * 1000,
    };
  },
  methods: {
    back() {
      window.history.back();
    },
  },
};
</script>

<style scoped lang="scss">
.regis {
  padding-bottom: 31px;
  .line {
    height: 8px;
    background: #f4f8ff;
  }
  .regis-head {
    position: relative;
    height: 191px;
    .infoImg {
      position: absolute;
      top: 0;
      width: 100%;
      height: 191px;
    }
  }
  ::v-deep(.van-hairline--bottom:after) {
    border-bottom-width: 0;
  }
  ::v-deep(.van-icon-arrow-left) {
    color: #ffffff;
  }

  .cont-item {
    padding: 12px 14px;
    .desc {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 14px;
      color: #272b2d;
      line-height: 24px;
      text-align: left;
      font-style: normal;
    }
    .item-title {
      font-family: PingFangSC, PingFang SC;
      font-weight: 600;
      font-size: 20px;
      color: #1e1e28;
      line-height: 28px;
      text-align: left;
      font-style: normal;
      padding-bottom: 8px;
    }
    .item-l {
      .item-title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #676b6b;
        line-height: 20px;
        text-align: left;
        font-style: normal;
        padding-right: 7px;
      }
      .item-title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #ffa940;
        line-height: 20px;
        text-align: left;
        font-style: normal;
      }
    }
    .item-cyrs {
      .cyrs {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 12px;
        color: #676b6b;
        line-height: 17px;
        text-align: right;
        font-style: normal;
        .isRead {
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 12px;
          color: #00ad6f;
          line-height: 17px;
          text-align: left;
          font-style: normal;
        }
      }
    }
    .item-r-cyrs {
      .y-pic {
        color: #ffa940;
      }
      .iscy {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 12px;
        color: #676b6b;
        line-height: 17px;
        text-align: right;
        font-style: normal;
      }
    }
    .item-r {
      text-align: right;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 14px;
      color: #676b6b;
      line-height: 20px;
      font-style: normal;
    }
    .djsUpad {
      margin-top: 12px;
      height: 40px;
      background: #b9bdbd;
      border-radius: 4px;
      line-height: 40px;
      padding: 0 13px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 12px;
      color: #ffffff;
      text-align: left;
      font-style: normal;
    }
    .bmjs {
      height: 40px;
      background: linear-gradient(270deg, #1ca893 0%, #1bcd74 100%);
      border-radius: 4px;
      line-height: 40px;
      ::v-deep(.van-count-down) {
        line-height: 40px;
      }
      .block {
        display: inline-block;
        width: 20px;
        height: 20px;
        background: #ffffff;
        border-radius: 2px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 500;
        font-size: 12px;
        color: #00d0ab;
        line-height: 20px;
        text-align: center;
        font-style: normal;
        margin: 0 5px;
      }
    }
  }
  .acont {
    padding: 12px 16px;
    .acont-title {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 14px;
      color: #676b6b;
      line-height: 32px;
      text-align: left;
      font-style: normal;
      span {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #272b2d;
        line-height: 32px;
        text-align: left;
        font-style: normal;
      }
    }
  }
  .prs {
    height: 10px;
    background: #fff1df;
    border-radius: 6px;
    margin: 10px 0 7px 0;
    position: relative;
    .prs-line {
      height: 10px;
      background: #ffa940;
      border-radius: 6px;
    }
  }
  .foter-btn {
    height: 44px;
    background: #b9bdbd;
    border-radius: 22px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 17px;
    color: #ffffff;
    text-align: center;
    font-style: normal;
    line-height: 44px;
    margin: 31px 51px;
  }
  .rd {
    height: 44px;
    background: linear-gradient(270deg, #1ca893 0%, #1bcd74 100%);
    border-radius: 22px;
  }
  .qx {
    height: 44px;
    background: #ffa940;
    border-radius: 22px;
  }
}
</style>
